﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<WebClient.Models.ViewModels.GroupViewModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <script type="text/javascript">
		<% if (ViewData["RegisterResult"] != null && ViewData["RegisterResult"].ToString() != ""){ %>
			alert('<%= ViewData["RegisterResult"].ToString() %>');
		<% } %>
	</script>
    <script type="text/javascript">
		<% if (Model.UsersModel.InfoText != null && Model.UsersModel.InfoText != ""){ %>
			alert('<%= Model.UsersModel.InfoText %>');
		<% } %>
	</script>
    <div id="content">
        <div id="container_new">
            <div id="divleft_approve">
                <h1 class="h1">Update account information</h1>    
                <div id="greyline" style="width:800px;"></div>
                <div id="formdiv">
                    <% using (Html.BeginForm("UpdateAccount", "Account", FormMethod.Post, new { onsubmit = "return ValidateUpdateAccount();" }))
                       { %>
                        <div id="checkout_left_block" style="width: 525px;">
                            <div><h2>Personal Details</h2></div>
                            <div id="clear"></div>
                            <div id="checkoutleft">E-Mail*</div>
                            <div id="checkoutlogin">
                                <input style="width:200px;" type="text" name="NguoiDung_Email" id="email1" title="Your email will be used to send you a confirmation of your order and for the next time you login." class="checkout_input" value="<%= Model.UsersModel.GetModel.LstObjModel[0].Email %>" maxlength="80"  />
                            </div>
                            <div id="clear"></div>
                            <div id="checkoutleft">Name*</div>
                            <div id="checkoutlogin">
                                <input style="width:200px;" type="text" name="NguoiDung_Name" id="firstname" class="checkout_input" value="<%= Model.UsersModel.GetModel.LstObjModel[0].Name %>" maxlength="20" />
                            </div>
                            <div id="clear"></div>
                            <div id="checkoutleft">Phone</div>
                            <div id="checkoutlogin">
                                <input style="width:150px;" type="text" name="NguoiDung_Phone" id="phone" title="You can only make an order with a valid phone number!" class="checkout_phone" value="<%= Model.UsersModel.GetModel.LstObjModel[0].Phone %>" maxlength="15" />
                            </div>
                            <div id="clear"></div>
                            <div id="checkoutleft">Address</div>
                            <div id="checkoutlogin">
                                <input style="width:400px;" type="text" name="NguoiDung_Address" id="gsm" title="By entering a mobile phone number you will be able to receive order confirmations by sms" class="checkout_phone" value="<%= Model.UsersModel.GetModel.LstObjModel[0].Address %>" maxlength="15" />
                            </div>
                            <div id="clear"></div>
                            <div style="padding-left: 10px;">&nbsp;</div>
                            <div id="check_app">
                                <input type="hidden" name="NguoiDung_ID" value="<%= Model.UsersModel.GetModel.LstObjModel[0].ID %>" />
                                <input type="hidden" name="NguoiDung_UserName" value="<%= Model.UsersModel.GetModel.LstObjModel[0].UserName %>" />
                                <input type="submit" name="sbt2" id="sbt2" value="Update" title="Click the button to proceed to delivery and payment details" class="submitbutton" />
                            </div>
                        </div>
                    <% } %>
                </div>
            </div>
            <div style="margin-top:10px;">&nbsp;</div>
        </div>
    </div>
</asp:Content>
